package com.control.model;

import java.io.Serializable;

import com.control.constants.Constants.CookerWarn;
import com.control.utils.StringUtils;

public class CookerModelInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String stage;
	private String time;
	private String warn;
	private int cookerPower;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStage() {
		return stage;
	}
	public void setStage(String stage) {
		this.stage = stage;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getWarn() {
		if(StringUtils.isEmpty(this.warn)){
			return CookerWarn.alarm.getValue();
		}
		return warn;
	}
	public void setWarn(String warn) {
		this.warn = warn;
	}
	public int getCookerPower() {
		
		return cookerPower;
	}
	public void setCookerPower(int cookerPower) {
		this.cookerPower = cookerPower;
	}

}
